package com.hailin.pigserver.biz;

import com.hailin.pigapi.model.Pig;
import com.hailin.pigserver.dao.PigMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service(value = "pigServiceBiz")
public class PigServiceBiz {

    @Autowired
    private PigMapper pigMapper;

    public List<Pig> queryAll() {
        return pigMapper.queryAll();
    }
}
